using System.Web.UI.WebControls;

namespace HeroldIT.Dnn.Modules.News
{
    public partial class NewsListSettings : Views.NewsListSettings
    {
        protected override void OnLoad(System.EventArgs e)
        {
            base.OnLoad(e);

            ((TextBox)this.txtMaxVisibleItems).Attributes["onkeypress"] = UIHelper.GetNumOnlyHandlerScript(this.Page);

            this.litNoCategories.DataBind();

            ((TextBox)this.txtFeedUrl).ToolTip = this.GetString("txtFeedUrl.ToolTip");
            ((TextBox)this.txtFeedUrl).Attributes["onfocus"] = "this.select()";
        }
    }
}